package com.itaem.community.modules.infrastructure.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 登录对象
 * @author lenovo
 */
@Data
@NotNull(message = "请上传数据")
@ApiModel(value="用户登录对象（手机号码，密码）", description="用户登录的信息")
public class UserLoginDTO {

    @NotBlank(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @NotBlank(message = "登录密码不能为空")
    @ApiModelProperty(value = "登录密码")
    private String password;
}

